package com.base.common.persistent.model;

import java.util.ArrayList;
import java.util.List;

public class TShopExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TShopExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andShopIdIsNull() {
            addCriterion("SHOP_ID is null");
            return (Criteria) this;
        }

        public Criteria andShopIdIsNotNull() {
            addCriterion("SHOP_ID is not null");
            return (Criteria) this;
        }

        public Criteria andShopIdEqualTo(Long value) {
            addCriterion("SHOP_ID =", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdNotEqualTo(Long value) {
            addCriterion("SHOP_ID <>", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdGreaterThan(Long value) {
            addCriterion("SHOP_ID >", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdGreaterThanOrEqualTo(Long value) {
            addCriterion("SHOP_ID >=", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdLessThan(Long value) {
            addCriterion("SHOP_ID <", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdLessThanOrEqualTo(Long value) {
            addCriterion("SHOP_ID <=", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdIn(List<Long> values) {
            addCriterion("SHOP_ID in", values, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdNotIn(List<Long> values) {
            addCriterion("SHOP_ID not in", values, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdBetween(Long value1, Long value2) {
            addCriterion("SHOP_ID between", value1, value2, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdNotBetween(Long value1, Long value2) {
            addCriterion("SHOP_ID not between", value1, value2, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopUuidIsNull() {
            addCriterion("SHOP_UUID is null");
            return (Criteria) this;
        }

        public Criteria andShopUuidIsNotNull() {
            addCriterion("SHOP_UUID is not null");
            return (Criteria) this;
        }

        public Criteria andShopUuidEqualTo(String value) {
            addCriterion("SHOP_UUID =", value, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidNotEqualTo(String value) {
            addCriterion("SHOP_UUID <>", value, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidGreaterThan(String value) {
            addCriterion("SHOP_UUID >", value, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidGreaterThanOrEqualTo(String value) {
            addCriterion("SHOP_UUID >=", value, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidLessThan(String value) {
            addCriterion("SHOP_UUID <", value, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidLessThanOrEqualTo(String value) {
            addCriterion("SHOP_UUID <=", value, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidLike(String value) {
            addCriterion("SHOP_UUID like", value, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidNotLike(String value) {
            addCriterion("SHOP_UUID not like", value, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidIn(List<String> values) {
            addCriterion("SHOP_UUID in", values, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidNotIn(List<String> values) {
            addCriterion("SHOP_UUID not in", values, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidBetween(String value1, String value2) {
            addCriterion("SHOP_UUID between", value1, value2, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopUuidNotBetween(String value1, String value2) {
            addCriterion("SHOP_UUID not between", value1, value2, "shopUuid");
            return (Criteria) this;
        }

        public Criteria andShopNameIsNull() {
            addCriterion("SHOP_NAME is null");
            return (Criteria) this;
        }

        public Criteria andShopNameIsNotNull() {
            addCriterion("SHOP_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andShopNameEqualTo(String value) {
            addCriterion("SHOP_NAME =", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameNotEqualTo(String value) {
            addCriterion("SHOP_NAME <>", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameGreaterThan(String value) {
            addCriterion("SHOP_NAME >", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameGreaterThanOrEqualTo(String value) {
            addCriterion("SHOP_NAME >=", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameLessThan(String value) {
            addCriterion("SHOP_NAME <", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameLessThanOrEqualTo(String value) {
            addCriterion("SHOP_NAME <=", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameLike(String value) {
            addCriterion("SHOP_NAME like", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameNotLike(String value) {
            addCriterion("SHOP_NAME not like", value, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameIn(List<String> values) {
            addCriterion("SHOP_NAME in", values, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameNotIn(List<String> values) {
            addCriterion("SHOP_NAME not in", values, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameBetween(String value1, String value2) {
            addCriterion("SHOP_NAME between", value1, value2, "shopName");
            return (Criteria) this;
        }

        public Criteria andShopNameNotBetween(String value1, String value2) {
            addCriterion("SHOP_NAME not between", value1, value2, "shopName");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("USER_ID =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("USER_ID <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("USER_ID >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("USER_ID >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("USER_ID <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("USER_ID <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("USER_ID in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("USER_ID not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("USER_ID between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("USER_ID not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andShopStatusIsNull() {
            addCriterion("SHOP_STATUS is null");
            return (Criteria) this;
        }

        public Criteria andShopStatusIsNotNull() {
            addCriterion("SHOP_STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andShopStatusEqualTo(Integer value) {
            addCriterion("SHOP_STATUS =", value, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopStatusNotEqualTo(Integer value) {
            addCriterion("SHOP_STATUS <>", value, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopStatusGreaterThan(Integer value) {
            addCriterion("SHOP_STATUS >", value, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("SHOP_STATUS >=", value, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopStatusLessThan(Integer value) {
            addCriterion("SHOP_STATUS <", value, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopStatusLessThanOrEqualTo(Integer value) {
            addCriterion("SHOP_STATUS <=", value, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopStatusIn(List<Integer> values) {
            addCriterion("SHOP_STATUS in", values, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopStatusNotIn(List<Integer> values) {
            addCriterion("SHOP_STATUS not in", values, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopStatusBetween(Integer value1, Integer value2) {
            addCriterion("SHOP_STATUS between", value1, value2, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("SHOP_STATUS not between", value1, value2, "shopStatus");
            return (Criteria) this;
        }

        public Criteria andShopCategoryIsNull() {
            addCriterion("SHOP_CATEGORY is null");
            return (Criteria) this;
        }

        public Criteria andShopCategoryIsNotNull() {
            addCriterion("SHOP_CATEGORY is not null");
            return (Criteria) this;
        }

        public Criteria andShopCategoryEqualTo(Integer value) {
            addCriterion("SHOP_CATEGORY =", value, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopCategoryNotEqualTo(Integer value) {
            addCriterion("SHOP_CATEGORY <>", value, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopCategoryGreaterThan(Integer value) {
            addCriterion("SHOP_CATEGORY >", value, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopCategoryGreaterThanOrEqualTo(Integer value) {
            addCriterion("SHOP_CATEGORY >=", value, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopCategoryLessThan(Integer value) {
            addCriterion("SHOP_CATEGORY <", value, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopCategoryLessThanOrEqualTo(Integer value) {
            addCriterion("SHOP_CATEGORY <=", value, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopCategoryIn(List<Integer> values) {
            addCriterion("SHOP_CATEGORY in", values, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopCategoryNotIn(List<Integer> values) {
            addCriterion("SHOP_CATEGORY not in", values, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopCategoryBetween(Integer value1, Integer value2) {
            addCriterion("SHOP_CATEGORY between", value1, value2, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopCategoryNotBetween(Integer value1, Integer value2) {
            addCriterion("SHOP_CATEGORY not between", value1, value2, "shopCategory");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlIsNull() {
            addCriterion("SHOP_PIC_URL is null");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlIsNotNull() {
            addCriterion("SHOP_PIC_URL is not null");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlEqualTo(String value) {
            addCriterion("SHOP_PIC_URL =", value, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlNotEqualTo(String value) {
            addCriterion("SHOP_PIC_URL <>", value, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlGreaterThan(String value) {
            addCriterion("SHOP_PIC_URL >", value, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlGreaterThanOrEqualTo(String value) {
            addCriterion("SHOP_PIC_URL >=", value, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlLessThan(String value) {
            addCriterion("SHOP_PIC_URL <", value, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlLessThanOrEqualTo(String value) {
            addCriterion("SHOP_PIC_URL <=", value, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlLike(String value) {
            addCriterion("SHOP_PIC_URL like", value, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlNotLike(String value) {
            addCriterion("SHOP_PIC_URL not like", value, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlIn(List<String> values) {
            addCriterion("SHOP_PIC_URL in", values, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlNotIn(List<String> values) {
            addCriterion("SHOP_PIC_URL not in", values, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlBetween(String value1, String value2) {
            addCriterion("SHOP_PIC_URL between", value1, value2, "shopPicUrl");
            return (Criteria) this;
        }

        public Criteria andShopPicUrlNotBetween(String value1, String value2) {
            addCriterion("SHOP_PIC_URL not between", value1, value2, "shopPicUrl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}